package workbench.domain;

public class ActivityRemark {
    private String id;
    private String noteContent;//备注信息
    private String createTime;
    private String createBy;
    private String editTime;
    private String editBy;
    private String editFlag;//是否被修改过的标记
    private String activityId;

    @Override
    public String toString() {
        return "ActivityRemark{" +
                "id='" + id + '\'' +
                ", noteContent='" + noteContent + '\'' +
                ", createTime='" + createTime + '\'' +
                ", createBy='" + createBy + '\'' +
                ", editTime='" + editTime + '\'' +
                ", editBy='" + editBy + '\'' +
                ", editFlag='" + editFlag + '\'' +
                ", activityId='" + activityId + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        ActivityRemark that = (ActivityRemark) o;

        if (getId() != null ? !getId().equals(that.getId()) : that.getId() != null) return false;
        if (getNoteContent() != null ? !getNoteContent().equals(that.getNoteContent()) : that.getNoteContent() != null)
            return false;
        if (getCreateTime() != null ? !getCreateTime().equals(that.getCreateTime()) : that.getCreateTime() != null)
            return false;
        if (getCreateBy() != null ? !getCreateBy().equals(that.getCreateBy()) : that.getCreateBy() != null)
            return false;
        if (getEditTime() != null ? !getEditTime().equals(that.getEditTime()) : that.getEditTime() != null)
            return false;
        if (getEditBy() != null ? !getEditBy().equals(that.getEditBy()) : that.getEditBy() != null) return false;
        if (getEditFlag() != null ? !getEditFlag().equals(that.getEditFlag()) : that.getEditFlag() != null)
            return false;
        return getActivityId() != null ? getActivityId().equals(that.getActivityId()) : that.getActivityId() == null;
    }

    @Override
    public int hashCode() {
        int result = getId() != null ? getId().hashCode() : 0;
        result = 31 * result + (getNoteContent() != null ? getNoteContent().hashCode() : 0);
        result = 31 * result + (getCreateTime() != null ? getCreateTime().hashCode() : 0);
        result = 31 * result + (getCreateBy() != null ? getCreateBy().hashCode() : 0);
        result = 31 * result + (getEditTime() != null ? getEditTime().hashCode() : 0);
        result = 31 * result + (getEditBy() != null ? getEditBy().hashCode() : 0);
        result = 31 * result + (getEditFlag() != null ? getEditFlag().hashCode() : 0);
        result = 31 * result + (getActivityId() != null ? getActivityId().hashCode() : 0);
        return result;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getNoteContent() {
        return noteContent;
    }

    public void setNoteContent(String noteContent) {
        this.noteContent = noteContent;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public String getEditTime() {
        return editTime;
    }

    public void setEditTime(String editTime) {
        this.editTime = editTime;
    }

    public String getEditBy() {
        return editBy;
    }

    public void setEditBy(String editBy) {
        this.editBy = editBy;
    }

    public String getEditFlag() {
        return editFlag;
    }

    public void setEditFlag(String editFlag) {
        this.editFlag = editFlag;
    }

    public String getActivityId() {
        return activityId;
    }

    public void setActivityId(String activityId) {
        this.activityId = activityId;
    }

    public ActivityRemark(String id, String noteContent, String createTime, String createBy, String editTime, String editBy, String editFlag, String activityId) {
        this.id = id;
        this.noteContent = noteContent;
        this.createTime = createTime;
        this.createBy = createBy;
        this.editTime = editTime;
        this.editBy = editBy;
        this.editFlag = editFlag;
        this.activityId = activityId;
    }

    public ActivityRemark() {
    }
}
